package com.heima.client.user;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.pojos.user.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author Lijx
 * @Date 2024-08-01 16:28
 */
@FeignClient("leadnews-user")
public interface IApUserClient {

    @GetMapping("/api/v1/info/{userId}")
    ResponseResult getUserInfo(@PathVariable Integer userId);

    @GetMapping("/api/v1/user/{id}")
    ApUser findUserById(@PathVariable("id") Integer id);



}
